package xormDb

import (
	_ "github.com/go-sql-driver/mysql"
	"github.com/xormplus/xorm"
	"iristest/config"
)

var engine *xorm.Engine
var err error

func init() {
	engine, err = xorm.NewEngine(config.C.Data.DataType, config.C.Data.Url)
}

func GetOrm() *xorm.Engine {
	return engine
}
